package hom.homwork.java;

import java.util.Scanner;

//反转键盘录入的字符串
public class Htest1 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.println("请键盘输入字符串");
        String str = input.next();

        StringBuilder s = new StringBuilder(str);
        str = s.reverse().toString();
        System.out.println("反转后："+str);
        input.close();

    }
}
